FROM docker.io/node:iron

RUN npm install -g tiddlywiki@5.3.3

WORKDIR /var/lib/tiddlywiki
VOLUME /var/lib/tiddlywiki/wikifolder

EXPOSE 8080
EXPOSE 443

# Meta
ENTRYPOINT ["tiddlywiki", "./wikifolder", "--listen", "port=8080", "host=0.0.0.0"]
